{extend name="default/shops/base" /}
{block name="title"}应诉 - 卖家中心{__block__}{/block}
{block name="css"}
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
{/block}
{block name="content"}
<style>
.webuploader-pick {
  background: #f7375c;
  height:30px;
}
</style>
  <div class="wst-shop-head"><span>应诉</span></div>
  
  <div class='wst-shop-content'>
  <form id="respondForm" method="post" >
    <div style='width:990px;overflow:hidden;'>
            <input type='hidden' id='complainId' class='ipt' value="{$data['complainId']}"/>
          <div class='wst-complain-left'>
             <div class='wst-complain-order-head'>订单商品</div>
             <div class='wst-complain-order-goods'>
             {volist name="$data['goodsList']" id="goods" key='key2'}
              <a target='_blank' href="{:Url('Home/Goods/Detail',array('goodsId'=>$goods['goodsId']))}" title="{$goods['goodsName']}">
              <img data-original="__RESOURCE_PATH__/{$goods['goodsImg']}" height="55" width="55" class='gImg'/>
              </a>
             {/volist}
             </div>
             <div class='wst-complain-order-head'>订单信息</div>
             <div class='wst-complain-order-info'>
               <dl>
                   <dt>订单编号：</dt>
                   <dd>{$data['orderNo']}</dd>
                   <dt>订单金额：</dt>
                   <dd>￥{$data['realTotalMoney']}</dd>
                   <dt>运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费：</dt>
                   <dd>￥{$data['deliverMoney']}</dd>
                   <dt>下单时间：</dt>
                   <dd>{$data['createTime']}</dd>
                   <dt>商&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;家：</dt>
                   <dd>{$data['shopName']}</dd>
                </dl>
              </div>
          </div>
          <div class='wst-complain-main'>
              <div class='wst-complain-order-head' style='width:735px;'>投诉信息</div>
              <div class='wst-complain-box'>
              <table width='100%'>
                 <tr>
                   <td width='70' align='right'>投诉类型：</td>
                   <td>
                    {php}$reason = WSTDatas('ORDER_COMPLAINT',$data['complainType']);{/php}
                    {$reason['dataName']}
                   </td>
                 </tr>
                 <tr>
                   <td align='right'>详情：</td>
                   <td class='line-break'>{$data['complainContent']}</td>
                 </tr>
                 <tr>
                   <td align='right'>附件：</td>
                   <td>
                   <div id="photos-complain">
                   {if !empty($data['complainAnnex'])}
                   {volist name="$data['complainAnnex']" id="annex"}
                    <img class='lazyImg' layer-src="__RESOURCE_PATH__/{$annex}" data-original="__RESOURCE_PATH__/$annex}" src="__RESOURCE_PATH__/{:str_replace('.','_thumb.',$annex)}" height="100" width="100"/>
                   {/volist}
                   {/if}
                    </div>
                   </td>
                 </tr>
              </table>
              </div>
              <div class='wst-complain-order-head' style='width:735px;'>应诉信息</div>
              <div class='wst-complain-box'>
              <table width='100%'>
                 <tr>
                   <td>
                   <textarea id='respondContent' name="respondContent" class='ipt' autocomplete="off" style='width:700px;height:162px;' placeholder='请输入应诉内容' data-rule='应诉内容:required;' data-target='#msg_respondContent'></textarea><br/>
                   <div class='msg-box' id='msg_respondContent'></div>
                   </td>
                 </tr>
                 <tr>
                   <td>
                       <div id="filePicker" style='margin-left:0px;overflow:hidden;height:25px;magin-left:5px;'>上传附件(最多5张)</div>
                   </td>
                 </tr>
                 <tr>
                   <td>
                       <div id='picBox' style='height:120px;width:710px;padding:5px;'>
                   </td>
                 </tr>
              </table>
              </div>
          </div>
          <div class='wst-complain-footer'>
             <a href="javascript:saveRespond()" class="s-btn">提交</a>
             <a href="javascript:location.href='{:url('home/ordercomplains/shopComplain')}'" class="s-btn">返回</a>
          </div>
       </div>
     </form>
  </div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/orders/orders.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
<script>
$(function(){
  respondInit();
})
</script>
{/block}
